//
//  HDDragAdsorptionButton.h
//  HDVideoKitDemok
//
//  Created by liugaosheng on 2021/8/31.
//  Copyright © 2021 刘高升. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, HDDragButtonRemainStyle) {
    HDDragButtonRemainStyleNone,//默认 无自动停靠边界，停留在最后的可控范围内
    HDDragButtonRemainStyleAutomaticMargin,//自动吸附在可控范围边界（内部只实现在左右边界吸附）
    HDDragButtonRemainStyleAutomaticMarginLeft,//自动吸附 左 边界
    HDDragButtonRemainStyleAutomaticMarginRight,//自动吸附 右 边界
};

@interface HDDragAdsorptionButton : UIButton
/// 悬浮按钮的拖拽范围
@property (nonatomic) CGRect cagingArea;
/// 停留样式
@property (nonatomic, assign) HDDragButtonRemainStyle remainStyle;
@end

NS_ASSUME_NONNULL_END
